Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
[...entry].md.ts782 B
/** * Add a .md route that return the raw markdown content of the page. * This is useful for markdown pages; heavy mdx pages will need more work. */ import type { APIRoute } from "astro" import type { InferGetStaticPropsType, GetStaticPaths } from "astro" import { getCollection } from "astro:content" export const getStaticPaths = (async () => { const entries = await getCollection("docs") return entries.map((entry) => ({ params: { entry: entry.id }, props: { entry }, })) }) satisfies GetStaticPaths type Props = InferGetStaticPropsType<typeof getStaticPaths> export const GET: APIRoute<Props> = (context) => { return new Response(context.props.entry.body, { headers: { "content-type": "text/markdown", }, }) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server